# i = 0
# while i < 10:
#     print(i)
#     if i % 2 == 0:
#         continue
#     i += 1
#     print(i)

while True:
    command = input('请输入命令(q/exit)')
    if command == 'q':
        base =int( input('输入一个底数'))
        ecp = int(input('输入一个指数'))
        pow(base,ecp)
    elif command == 'exit':
        # continue
        break